import { createRouter, createWebHistory } from "vue-router";
import HomeView from "../views/HomeView.vue";
import ThreeTest from "@/views/ThreeTest.vue";
import StudyTest from "@/views/StudyTest.vue";
import Feizixiao from "@/views/lychee/Feizixiao.vue";
import Guiwei from "@/views/lychee/Guiwei.vue";
import Nuomici from "@/views/lychee/Nuomici.vue";

const routes = [
  {
    path: "/feizixiao",
    name: "feizixiao",
    component: Feizixiao,
  },
  {
    path: "/guiwei",
    name: "guiwei",
    component: Guiwei,
  },
  {
    path: "/nuomici",
    name: "nuomici",
    component: Nuomici,
  },
  {
    path: "/study",
    name: "study",
    component: StudyTest,
  },
  {
    path: "/three",
    name: "three",
    component: ThreeTest,
  },
  {
    path: "/",
    name: "home",
    component: HomeView,
  },
  {
    path: "/about",
    name: "about",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "about" */ "../views/AboutView.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
